/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package food;

/**
 *
 * @author Luong
 */
public class CartDTO {
    private int FoodID;
    private int Qty;
    private double price;
    private String  name;
    private double  sum=0;

    public double total(double price){
        sum+=price;
        return sum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getFoodID() {
        return FoodID;
    }

    public void setFoodID(int FoodID) {
        this.FoodID = FoodID;
    }

    public int getQty() {
        return Qty;
    }

    public void setQty(int Qty) {
        this.Qty = Qty;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public CartDTO() {
    }



}
